package com.sirc.zp.domain;

/**
 * Created by wpx on 2018/3/7.
 */

/**
 * 权限表
 */
public class Privilege {
    private Integer pid; //主键id
    private String pname;//权限名称
    private String pintr;//权限介绍
    private String type;//权限类型：1代表菜单权限，2代表功能权限

    public Privilege() {
    }

    public Privilege(Integer pid, String pname, String pintr, String type) {
        this.pid = pid;
        this.pname = pname;
        this.pintr = pintr;
        this.type = type;
    }


    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getPintr() {
        return pintr;
    }

    public void setPintr(String pintr) {
        this.pintr = pintr;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Privilege{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", pintr='" + pintr + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
